package ooday05;

/*
 *标准javaBean的规范
 * 1.成员变量私有，同时提供对应的公开的gette/setter
 * 2.包含无参的成员构造方法
 *
 *设计gette/setter的原因
 *
 */
public class Point {
    private int x;
    private int y;

    public Point() {

    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
